home *** CD-ROM | disk | FTP | other *** search
- Path: news.uni-c.dk!news
- From: i3200@dc.dk (Henrik Mouritsen)
- Newsgroups: comp.lang.c++
- Subject: multidimensional array - supscipt operator overload
- Date: Fri, 09 Feb 1996 11:00:32 GMT
- Organization: Datacentralen A/S
- Message-ID: <4ff99q$pth@news.uni-c.dk>
- NNTP-Posting-Host: pc3200.dc.dk
- X-Newsreader: Forte Free Agent v0.46
-
- Does anyone out there know of a way to implement a class that defines
- multidimensional arrays.
- Im interested in overloading subscipt operator to enable me to do
- something like:
-
- Table X(row, col); // 2 dimensional table
-
- String a, b;
-
- a = X[1][1];
- X[1][1] = b;
-
- The class dosesnt have to be of template character, but it would be a
- plus of course.
-
-